package com.kajdo.notes.converter;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class NotesCalCon {
	public static void main(String args[]) throws IOException {
		PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(
				"foo.out")));

		NotesCalendar nc = new NotesCalendar("kalender1.txt");

		out.println(CalendarEntry.OUT_TAB_HEADER);

		for (int i = 0; i < nc.getNotesEntries().size(); i++) {
			CalendarEntry e = (CalendarEntry) nc.getNotesEntries().toArray()[i];
			out.println(e.getOUT_CSV_String());
		}

		out.close();
	}
}
